package dbmig.model;


import com.google.common.collect.ImmutableList;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;



/**
 * Database table.
 */
public final class Table extends AbstractEntity
{

    @NotNull
    private final List<Field> fields = new ArrayList<Field>(16);


    /**
     * Fields of this table.
     * @return fields.
     */
    @NotNull
    public ImmutableList<Field> getFields()
    {
        return ImmutableList.copyOf(fields);
    }
}
